Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

notice类消息,新增source字段 #295

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Conversation

tobycroft
Copy link
Contributor

因为目前的notice类消息没有消息的来源,例如poke,在ws中走的是notice通道而不是message通道,这样就使私聊消息和群聊消息几乎一致,从而需要判断json-key中是否存在group_id来判断消息来源是来自群还是私聊,这样对于部分语言接入就很不友好

新增字段后,在判断source之后即可使用对应的struct一次性扫进去

@tobycroft tobycroft changed the title notice类消息,新增source,解决poke等特殊消息没有办法直接判断消息来源的问题。修改后通过notice类消息的source字段… notice类消息,新增source Mar 14, 2024
@tobycroft tobycroft changed the title notice类消息,新增source notice类消息,新增source字段 Mar 14, 2024
@whitechi73 whitechi73 merged commit be58c36 into whitechi73:master Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants